<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no">

<link rel="stylesheet" href="${ctx}/static/plug/weui/css/weui.css" media="all">
<link rel="stylesheet" href="${ctx}/static/plug/weui/css/weuix.css" media="all">
<link rel="stylesheet" href="${ctx}/static/css/addCarNo.css" media="all">
<title>订单完成中</title>
<style type="text/css">
	body{
		background-color: #ebebeb;
	}
	.header{
		width: 100%;
		height: 30%;
	}
	.countDown{
		text-align: center;
	}
	#payment_success{
		display:none; 
	}
	#payment_success>p{
		text-align: center;
	}
    </style>
</head>
<body>
	<div class="header"></div>
	<div><p class="countDown">订单支付中。。。</p></div>
	<div id="payment_success">
		<p><img src="${ctx}/static/images/paymentsuccess.png" style="width: 150px; height: 120px;margin-bottom: 20px;"></p>
		<p><img id="lookOrder" src="${ctx}/static/images/lookOrder.png" width="150px;" height="40px;"></p>
	</div>
	
</body>

<script src="${ctx}/static/js/jquery/jquery-3.2.1.min.js"></script>


<script src="${ctx}/static/js/laydate/laydate.js"></script>
<script src="${ctx}/static/plug/layer_mobile/layer.js"></script>
<script src="${ctx}/static/js/common.js"></script>
<script src="${ctx}/static/plug/weui/js/zepto.weui.js" type="text/javascript"></script>

<script type="text/javascript">

$(function () {
	var num = 3;
	var userId = ${userId}
	setTimeout(countDown, 1000);
	
	
	
	function countDown() {
		num--;
		if(num == 0){
			$("#payment_success").css("display","block");
			$(".countDown").parent().css("display","none");
			return;
		}
		setTimeout(countDown, 1000);
	}
	
	$("#lookOrder").click(function() {
		window.location.href="${ctx}/order/myOrder?userId="+userId;
	});
});


</script>
</html>